package com.roc.util.constant;

import org.apache.commons.lang3.StringUtils;

public enum MerinfoModule {
	C_02_M_02("C_02_M_02", "01"),//商户查询
	C_03_M_01("C_03_M_01", "02"),//代理商录入
	C_03_M_02("C_03_M_02", "03"),//代理商查询
	C_04_M_01("C_04_M_01", "04"),//交易查询
	C_04_M_02("C_04_M_02", "05"),//结算查询
	C_04_M_10("C_04_M_10", "06"),//代付流水查询
	C_04_M_11("C_04_M_11", "07"),//清算查询
	C_07_M_02("C_07_M_02", "08"),//终端查询
	 ;
	 
	 private String code;
		private String name;
		

		private MerinfoModule( String name,String code) {
			this.code = code;
			this.name = name;
			
		}

		public String getCode() {
			return code;
		}

		public String getName() {
			return name;
		}

		public static MerinfoModule valueOfCode(String code) {
			if (StringUtils.isBlank(code)) {
				throw new IllegalArgumentException("SysLogType code " + code
						+ " is blank");
			}
			for (MerinfoModule ms : values()) {
				if (ms.getCode().equals(code)) {
					return ms;
				}
			}
			throw new IllegalArgumentException("SysLogType code " + code
					+ " is not exist");
		}
 public static void main(String[] args) {
	System.out.println(MerinfoModule.C_02_M_02.getName());
}
}
